﻿using Prism.Mvvm;
using Prism.Regions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 起点番茄小说助手.ViewModels
{
    internal class WebsiteViewModel :BindableBase, INavigationAware
    {
        private string url;

        public string Url
        {
            get { return url; }
            set { url = value;RaisePropertyChanged(); }
        }

        public WebsiteViewModel()
        {
            
        }



        public bool IsNavigationTarget(NavigationContext navigationContext)
        {
            return true;
        }

        public void OnNavigatedFrom(NavigationContext navigationContext)
        {

        }

        public void OnNavigatedTo(NavigationContext navigationContext)
        {
            Url=navigationContext.Parameters.GetValue<string>("url");
        }
    }
}
